package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: ysotirov
 * Date: 03/02/13
 * Time: 17:33
 * To change this template use File | Settings | File Templates.
 */
public class DisplayMovieRatings extends Option {
    public String title = "\bMovie\t\tYear\tDirector\tRating";

    public DisplayMovieRatings(IOInterface ioHndl, Biblioteca bibl) {
        super(ioHndl,bibl);
    }

    @Override
    public void executeOption() {
        ioHandler.queueMsg(title);
        for (int i=0; i<this.biblioteca.moviesList.size(); i++)
            ioHandler.queueMsg(this.biblioteca.moviesList.get(i).getMovieForPrint());
        ioHandler.Print();
    }
}
